package com.zoweunion.mechanic.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.*;

/**
 * 优惠券表
 *
 * @author xp
 * @email 17688825585@163.com
 * @date 2020-08-11 13:32:35
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder(toBuilder=true)
@TableName("t_s_ss_promotion_coupon")
public class PromotionCouponEntity implements Serializable {
    private static final long serialVersionUID = 1L;


    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField(exist = false)
    private Long couponId;

    /**
     * 优惠券名称
     */
    private String couponName;
    /**
     * 优惠券金额
     */
    private Integer couponMoney;
    /**
     * 使用限制 1:无限制/2:金额限制
     */
    private Integer employStatus;
    /**
     * 有效期
     */
    private Integer validity;
    /**
     * 满减金额
     */
    private Integer reduceMoney;
    /**
     * 发放用户
     */
    private Integer grantUser;

    /**
     * 发放张数
     */
    private Integer sheet;
    /**
     * 使用范围
     */
    private Integer useScope;
    /**
     * 短信推送
     */
    private String noteTemplate;
    /**
     * 到期提醒天数
     */
    private Integer expireNotice;
    /**
     * 到期提醒短信
     */
    private String expireTemplate;
    /**
     * 是否停用 1活动中/2停用
     */
    private Integer isEnable;

    private Integer deleteFlag;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    @TableField(exist = false)
    private Integer validityDate;

    @TableField(exist = false)
    private String userId;

    @TableField(exist = false)
    private String mobilePhone;

    @TableField(exist = false)
    private Double minMoney;


}
